package com.wcq.studentbackend.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

import javax.validation.constraints.Min;
import javax.validation.constraints.Max;

@Data
public class GradeRequestDTO {

    @NotNull(message = "学生ID不能为空")
    private Long studentId;

   @NotNull(message = "考试ID不能为空")
    private Long examId;

    @NotNull(message = "分数不能为空")
    @Min(value = 0, message = "分数不能小于0")
    @Max(value = 150, message = "分数不能大于150") // 假设满分150
    private Integer score;
} 